package com.JQ.Stream;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class StreamDemo02 {
    public static void main(String[] args) {
        Stream<String> stream1 = Stream.of("郭靖","杨康");
        Stream<String> stream2 = Stream.of("黄蓉","穆念慈");
        List<String> collect = Stream.concat(stream1, stream2).collect(Collectors.toList());
        System.out.println(collect);
    }
}
